﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_Dictionary : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("CmdAdd")]
        private ToolStripButton _CmdAdd;
        [AccessedThroughProperty("CmdDel")]
        private ToolStripButton _CmdDel;
        [AccessedThroughProperty("CmdEdit")]
        private ToolStripButton _CmdEdit;
        [AccessedThroughProperty("CmdExit")]
        private ToolStripButton _CmdExit;
        [AccessedThroughProperty("CmdFind")]
        private ToolStripButton _CmdFind;
        [AccessedThroughProperty("CmdPrint")]
        private ToolStripButton _CmdPrint;
        [AccessedThroughProperty("CmdSave")]
        private ToolStripButton _CmdSave;
        [AccessedThroughProperty("CmdUnsave")]
        private ToolStripButton _CmdUnsave;
        [AccessedThroughProperty("GroupBox1")]
        private GroupBox _GroupBox1;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("Label4")]
        private Label _Label4;
        [AccessedThroughProperty("ToolStrip1")]
        private ToolStrip _ToolStrip1;
        [AccessedThroughProperty("TxtTiengAnh")]
        private TextBox _TxtTiengAnh;
        [AccessedThroughProperty("TxtTiengViet")]
        private TextBox _TxtTiengViet;
        [AccessedThroughProperty("TxtTimTiengAnh")]
        private TextBox _TxtTimTiengAnh;
        [AccessedThroughProperty("TxtTimTiengViet")]
        private TextBox _TxtTimTiengViet;
        [AccessedThroughProperty("VSList")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSList;
        private DataView cFrmData;
        private IContainer components;
        private bool mEnabledControl;

        [DebuggerNonUserCode]
        public Frm_Dictionary()
        {
            base.Load += new EventHandler(this.Frm_Dictionary_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.InitializeComponent();
        }

        private void CmdDel_Click(object sender, EventArgs e)
        {
            if ((this.VSList.Rows.Count != 1) && (this.VSList.Row > 0))
            {
                string commandText = " DELETE FROM HT_Dictionary  WHERE RTRIM(VIET) = N'" + this.TxtTiengViet.Text.Trim() + "'";
                DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
                this.VSList.RemoveItem(this.VSList.Row);
            }
        }

        private void CmdEdit_Click(object sender, EventArgs e)
        {
            this.EnabledControl = true;
        }

        private void CmdSave_Click(object sender, EventArgs e)
        {
            this.EnabledControl = false;
        }

        private void CmdUnsave_Click(object sender, EventArgs e)
        {
            this.EnabledControl = false;
            this.VSList_RowColChange(RuntimeHelpers.GetObjectValue(sender), e);
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void Frm_Dictionary_Load(object sender, EventArgs e)
        {
            this.EnabledControl = false;
            this.LoadData();
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_Dictionary));
            this.ToolStrip1 = new ToolStrip();
            this.CmdAdd = new ToolStripButton();
            this.CmdEdit = new ToolStripButton();
            this.CmdSave = new ToolStripButton();
            this.CmdUnsave = new ToolStripButton();
            this.CmdFind = new ToolStripButton();
            this.CmdPrint = new ToolStripButton();
            this.CmdDel = new ToolStripButton();
            this.CmdExit = new ToolStripButton();
            this.VSList = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.TxtTimTiengAnh = new TextBox();
            this.TxtTimTiengViet = new TextBox();
            this.GroupBox1 = new GroupBox();
            this.Label2 = new Label();
            this.TxtTiengAnh = new TextBox();
            this.Label1 = new Label();
            this.TxtTiengViet = new TextBox();
            this.Label3 = new Label();
            this.Label4 = new Label();
            this.ToolStrip1.SuspendLayout();
            this.VSList.BeginInit();
            this.GroupBox1.SuspendLayout();
            this.SuspendLayout();
            this.ToolStrip1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgbluenoborder;
            this.ToolStrip1.Items.AddRange(new ToolStripItem[] { this.CmdAdd, this.CmdEdit, this.CmdSave, this.CmdUnsave, this.CmdFind, this.CmdPrint, this.CmdDel, this.CmdExit });
            Point point = new Point(0, 0);
            this.ToolStrip1.Location = point;
            this.ToolStrip1.Name = "ToolStrip1";
            Size size = new Size(0x318, 0x19);
            this.ToolStrip1.Size = size;
            this.ToolStrip1.TabIndex = 10;
            this.ToolStrip1.Text = "ToolStrip1";
            this.CmdAdd.Image = (Image) manager.GetObject("CmdAdd.Image");
            this.CmdAdd.ImageTransparentColor = Color.White;
            this.CmdAdd.Name = "CmdAdd";
            size = new Size(0x52, 0x16);
            this.CmdAdd.Size = size;
            this.CmdAdd.Text = "&Th\x00eam mới";
            this.CmdAdd.Visible = false;
            this.CmdEdit.Image = (Image) manager.GetObject("CmdEdit.Image");
            this.CmdEdit.ImageTransparentColor = Color.White;
            this.CmdEdit.Name = "CmdEdit";
            size = new Size(0x2e, 0x16);
            this.CmdEdit.Size = size;
            this.CmdEdit.Text = "&Sửa";
            this.CmdEdit.Visible = false;
            this.CmdSave.Image = (Image) manager.GetObject("CmdSave.Image");
            this.CmdSave.ImageTransparentColor = Color.WhiteSmoke;
            this.CmdSave.Name = "CmdSave";
            size = new Size(0x2f, 0x16);
            this.CmdSave.Size = size;
            this.CmdSave.Text = "&Lưu";
            this.CmdSave.Visible = false;
            this.CmdUnsave.Image = (Image) manager.GetObject("CmdUnsave.Image");
            this.CmdUnsave.ImageTransparentColor = Color.White;
            this.CmdUnsave.Name = "CmdUnsave";
            size = new Size(0x39, 0x16);
            this.CmdUnsave.Size = size;
            this.CmdUnsave.Text = "&K.Lưu";
            this.CmdUnsave.Visible = false;
            this.CmdFind.Image = (Image) manager.GetObject("CmdFind.Image");
            this.CmdFind.ImageTransparentColor = Color.White;
            this.CmdFind.Name = "CmdFind";
            size = new Size(0x4d, 0x16);
            this.CmdFind.Size = size;
            this.CmdFind.Text = "T\x00ecm kiếm";
            this.CmdFind.Visible = false;
            this.CmdPrint.Image = (Image) manager.GetObject("CmdPrint.Image");
            this.CmdPrint.ImageTransparentColor = Color.White;
            this.CmdPrint.Name = "CmdPrint";
            size = new Size(0x25, 0x16);
            this.CmdPrint.Size = size;
            this.CmdPrint.Text = "&In";
            this.CmdPrint.Visible = false;
            this.CmdDel.Image = (Image) manager.GetObject("CmdDel.Image");
            this.CmdDel.ImageTransparentColor = Color.White;
            this.CmdDel.Name = "CmdDel";
            size = new Size(0x2f, 0x16);
            this.CmdDel.Size = size;
            this.CmdDel.Text = "&X\x00f3a";
            this.CmdExit.Alignment = ToolStripItemAlignment.Right;
            this.CmdExit.Image = (Image) manager.GetObject("CmdExit.Image");
            this.CmdExit.ImageTransparentColor = Color.White;
            this.CmdExit.Name = "CmdExit";
            size = new Size(0x3a, 0x16);
            this.CmdExit.Size = size;
            this.CmdExit.Text = "Th&o\x00e1t";
            this.CmdExit.Visible = false;
            this.VSList.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Light3D;
            this.VSList.ColumnInfo = "3,0,0,0,0,85,Columns:0{Width:362;Caption:\"Tiếng Việt\";}\t1{Width:244;Caption:\"Tiếng Anh\";Style:\"DataType:System.String;TextAlign:LeftCenter;\";}\t2{Width:245;Caption:\"Trung quốc\";Visible:False;}\t";
            this.VSList.Dock = DockStyle.Top;
            this.VSList.ExtendLastCol = true;
            this.VSList.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0xa3);
            point = new Point(0, 0x19);
            this.VSList.Location = point;
            this.VSList.Name = "VSList";
            this.VSList.Rows.Count = 1;
            this.VSList.Rows.DefaultSize = 0x11;
            size = new Size(0x318, 0x1f3);
            this.VSList.Size = size;
            this.VSList.StyleInfo = manager.GetString("VSList.StyleInfo");
            this.VSList.TabIndex = 12;
            this.VSList.VisualStyle = VisualStyle.Office2007Blue;
            point = new Point(0x18d, 0x20f);
            this.TxtTimTiengAnh.Location = point;
            this.TxtTimTiengAnh.Name = "TxtTimTiengAnh";
            size = new Size(0x187, 20);
            this.TxtTimTiengAnh.Size = size;
            this.TxtTimTiengAnh.TabIndex = 0x12;
            point = new Point(1, 0x20f);
            this.TxtTimTiengViet.Location = point;
            this.TxtTimTiengViet.Name = "TxtTimTiengViet";
            size = new Size(390, 20);
            this.TxtTimTiengViet.Size = size;
            this.TxtTimTiengViet.TabIndex = 0x11;
            this.GroupBox1.Controls.Add(this.Label2);
            this.GroupBox1.Controls.Add(this.TxtTiengAnh);
            this.GroupBox1.Controls.Add(this.Label1);
            this.GroupBox1.Controls.Add(this.TxtTiengViet);
            point = new Point(4, 0x23b);
            this.GroupBox1.Location = point;
            this.GroupBox1.Name = "GroupBox1";
            size = new Size(0x310, 0x40);
            this.GroupBox1.Size = size;
            this.GroupBox1.TabIndex = 0x13;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "Cập nhật";
            this.Label2.AutoSize = true;
            point = new Point(0x192, 0x16);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            size = new Size(0x38, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 20;
            this.Label2.Text = "Tiếng Anh";
            point = new Point(0x195, 0x26);
            this.TxtTiengAnh.Location = point;
            this.TxtTiengAnh.Name = "TxtTiengAnh";
            size = new Size(0x170, 20);
            this.TxtTiengAnh.Size = size;
            this.TxtTiengAnh.TabIndex = 0x13;
            this.Label1.AutoSize = true;
            point = new Point(0x49, 0x10);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x37, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 0x12;
            this.Label1.Text = "Tiếng Việt";
            point = new Point(11, 0x26);
            this.TxtTiengViet.Location = point;
            this.TxtTiengViet.Name = "TxtTiengViet";
            this.TxtTiengViet.ReadOnly = true;
            size = new Size(0x162, 20);
            this.TxtTiengViet.Size = size;
            this.TxtTiengViet.TabIndex = 0x11;
            this.Label3.AutoSize = true;
            this.Label3.BackColor = Color.Transparent;
            point = new Point(-2, 550);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            size = new Size(0x51, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 20;
            this.Label3.Text = "T\x00ecm (Tiếng Việt)";
            this.Label4.AutoSize = true;
            this.Label4.BackColor = Color.Transparent;
            point = new Point(0x18a, 550);
            this.Label4.Location = point;
            this.Label4.Name = "Label4";
            size = new Size(0x52, 13);
            this.Label4.Size = size;
            this.Label4.TabIndex = 0x15;
            this.Label4.Text = "T\x00ecm (Tiếng Anh)";
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            this.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            size = new Size(0x318, 0x236);
            this.ClientSize = size;
            this.Controls.Add(this.Label4);
            this.Controls.Add(this.Label3);
            this.Controls.Add(this.GroupBox1);
            this.Controls.Add(this.TxtTimTiengAnh);
            this.Controls.Add(this.TxtTimTiengViet);
            this.Controls.Add(this.VSList);
            this.Controls.Add(this.ToolStrip1);
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "Frm_Dictionary";
            this.ShowIcon = false;
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Text = "Cap Nhat Tu Dien";
            this.ToolStrip1.ResumeLayout(false);
            this.ToolStrip1.PerformLayout();
            this.VSList.EndInit();
            this.GroupBox1.ResumeLayout(false);
            this.GroupBox1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }

        public void LoadData()
        {
            string commandText = "SELECT VIET, ANH from HT_Dictionary ORDER BY VIET";
            this.cFrmData = new DataView(DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]).Tables[0]);
            this.VSList.DataSource = this.cFrmData;
            this.VSList.Cols[0].Width = 400;
            this.VSList[0, 0] = modGeneral.Tranlated("Tiếng Việt", "");
            this.VSList[0, 1] = modGeneral.Tranlated("Tiếng Anh", "");
        }

        private void TxtTimTiengAnh_TextChanged(object sender, EventArgs e)
        {
            string str = "ANH LIKE '" + this.TxtTimTiengAnh.Text.Trim() + "%'";
            this.cFrmData.RowFilter = str;
            this.VSList_RowColChange(RuntimeHelpers.GetObjectValue(sender), e);
        }

        private void TxtTimTiengViet_TextChanged(object sender, EventArgs e)
        {
            string str = "VIET LIKE '" + this.TxtTimTiengViet.Text.Trim() + "%'";
            this.cFrmData.RowFilter = str;
            this.VSList_RowColChange(RuntimeHelpers.GetObjectValue(sender), e);
        }

        private void VSList_AfterEdit(object sender, RowColEventArgs e)
        {
            string str3 = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSList[e.Row, 0]), "", modGeneral.TypeOfValue.Nothing).ToString();
            string str2 = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSList[e.Row, 1]), "", modGeneral.TypeOfValue.Nothing).ToString();
            string commandText = "UPDATE HT_Dictionary set ANH = N'" + str2.Trim() + "'  WHERE RTRIM(VIET) = N'" + str3.Trim() + "'";
            DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
        }

        private void VSList_RowColChange(object sender, EventArgs e)
        {
            if ((this.VSList.Rows.Count != 1) && (this.VSList.Row > 0))
            {
                this.TxtTiengAnh.Text = Conversions.ToString(this.VSList[this.VSList.Row, 1]);
                this.TxtTiengViet.Text = Conversions.ToString(this.VSList[this.VSList.Row, 0]);
            }
        }

        internal virtual ToolStripButton CmdAdd
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAdd;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdAdd = value;
            }
        }

        internal virtual ToolStripButton CmdDel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdDel_Click);
                if (this._CmdDel != null)
                {
                    this._CmdDel.Click -= handler;
                }
                this._CmdDel = value;
                if (this._CmdDel != null)
                {
                    this._CmdDel.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdEdit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdEdit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdEdit_Click);
                if (this._CmdEdit != null)
                {
                    this._CmdEdit.Click -= handler;
                }
                this._CmdEdit = value;
                if (this._CmdEdit != null)
                {
                    this._CmdEdit.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdExit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdExit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdExit = value;
            }
        }

        internal virtual ToolStripButton CmdFind
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdFind;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdFind = value;
            }
        }

        internal virtual ToolStripButton CmdPrint
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdPrint;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdPrint = value;
            }
        }

        internal virtual ToolStripButton CmdSave
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdSave;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdSave_Click);
                if (this._CmdSave != null)
                {
                    this._CmdSave.Click -= handler;
                }
                this._CmdSave = value;
                if (this._CmdSave != null)
                {
                    this._CmdSave.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdUnsave
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdUnsave;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdUnsave_Click);
                if (this._CmdUnsave != null)
                {
                    this._CmdUnsave.Click -= handler;
                }
                this._CmdUnsave = value;
                if (this._CmdUnsave != null)
                {
                    this._CmdUnsave.Click += handler;
                }
            }
        }

        public bool EnabledControl
        {
            get
            {
                return this.mEnabledControl;
            }
            set
            {
                this.mEnabledControl = value;
                this.TxtTimTiengAnh.Enabled = !value;
                this.TxtTimTiengViet.Enabled = !value;
                this.TxtTiengAnh.ReadOnly = !value;
                this.VSList.Enabled = !value;
            }
        }

        internal virtual GroupBox GroupBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox1 = value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Label Label4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label4 = value;
            }
        }

        internal virtual ToolStrip ToolStrip1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStrip1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStrip1 = value;
            }
        }

        internal virtual TextBox TxtTiengAnh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTiengAnh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTiengAnh = value;
            }
        }

        internal virtual TextBox TxtTiengViet
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTiengViet;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTiengViet = value;
            }
        }

        internal virtual TextBox TxtTimTiengAnh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTimTiengAnh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtTimTiengAnh_TextChanged);
                if (this._TxtTimTiengAnh != null)
                {
                    this._TxtTimTiengAnh.TextChanged -= handler;
                }
                this._TxtTimTiengAnh = value;
                if (this._TxtTimTiengAnh != null)
                {
                    this._TxtTimTiengAnh.TextChanged += handler;
                }
            }
        }

        internal virtual TextBox TxtTimTiengViet
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTimTiengViet;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtTimTiengViet_TextChanged);
                if (this._TxtTimTiengViet != null)
                {
                    this._TxtTimTiengViet.TextChanged -= handler;
                }
                this._TxtTimTiengViet = value;
                if (this._TxtTimTiengViet != null)
                {
                    this._TxtTimTiengViet.TextChanged += handler;
                }
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSList
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSList;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.VSList_RowColChange);
                RowColEventHandler handler2 = new RowColEventHandler(this.VSList_AfterEdit);
                if (this._VSList != null)
                {
                    this._VSList.RowColChange -= handler;
                    this._VSList.AfterEdit -= handler2;
                }
                this._VSList = value;
                if (this._VSList != null)
                {
                    this._VSList.RowColChange += handler;
                    this._VSList.AfterEdit += handler2;
                }
            }
        }
    }
}

